
<?php
session_start ();
$taikhoan = $this->taikhoan;
$_SESSION ['mataikhoan'] = $taikhoan->getMaTaiKhoan ();
;
?>


<script type="text/javascript">
		function submit(id){
				
				var myRequest = new Request({   
					url: rootURL+'/tai-khoan/remove',
					   method: 'get', 
					   onSuccess: function(response){     alert("Ban Đã Xóa Thành Công");
							var button=document.getElementById('phanquyen');
							var button2=document.getElementById('xoa');
							button2.setStyle('visibility',   'hidden');
							button.value='Trở Lại';
							var form=document.getElementById('f2');
							form.action='manage';
								return false;
				   		   }, 
					     data: {     id: id   } }).send();
								return false;
					}

</script>

<div class="center_title_bar">Thông Tin Chi Tiết</div>
    <div class="prod_box_big">
        <div class="top_prod_box_big"></div>
        <div class="center_prod_box_big">
				<center>

<table border="1" cellpadding="2" cellspacing="2" id="myTable" style="width: 400px">
	<thead>
	<tr>
		<td>Thông Tin</td>
		<td>Nội Dung</td>
	</tr>
	
	</thead>
	
	<tr class="tr1">
		<td>Mã Thành Viên</td>
		<td><?php
		echo $taikhoan->getMaTaiKhoan ()?></td>
	</tr>
	<tr class="tr1">
		<td>username</td>
		<td><?php
		echo $taikhoan->getUsername ()?></td>
	</tr>
	<tr class="tr1">
		<td>Họ Tên</td>
		<td><?php
		echo $taikhoan->getHoVaTen ()?></td>
	</tr >
	<tr class="tr1">
		<td>Địa chỉ</td>
		<td><?php
		echo $taikhoan->getDiaChi ()?></td>
	</tr>
	<tr class="tr1">
		<td>Email</td>
		<td><?php
		echo $taikhoan->getEmail ()?></td>
	</tr>
	<tr class="tr1">
		<td>Số Điện Thoại</td>
		<td><?php
		echo $taikhoan->getSoDienThoai ()?></td>
	</tr >

	<tr class="tr1">
		<td align="center" ></td>
			
		<td>
		<input id="xoa" type="submit" value="Xóa"
			onclick="return submit(<?php
			echo $taikhoan->getMaTaiKhoan ()?>)">
		<form style="float: left;" id="f2"  action="getquyen"><input id='phanquyen' type="submit" value="Phân Quyền"></form>
		</td>

	</tr>
</table>

</center>

        </div>
        <div class="bottom_prod_box_big"></div>
      </div>